module.exports = (app) => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;

  const ImageListSchema = new Schema({
    imgName: {
      type: String,
      required: true,
    },
    imgUrl: {
      type: String,
      required: true,
    },
    isAdmin: {
      type: Boolean,
      default: false,
    }
  });

  return mongoose.model("ImageList", ImageListSchema, "ImageList");
};
